package dancetiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

type DanceUserAccount struct {
	Id      int64  `json:"id" gorm:"primaryKey;autoIncrement;comment:id"`
	Account string `json:"account" gorm:"column:account;type:varchar(255);not null;default:'';comment: 账号"` //

	Token      string         `json:"token" gorm:"column:token;type:varchar(500);not null;default:'';comment: sdk的token"`                                           //
	Platform   int8           `json:"platform" gorm:"column:platform;type:tinyint;default:0;not null;comment:-1: pc   0:editor  1 : android, 2 : ios"`              //
	Channel    int8           `json:"channel" gorm:"column:channel;type:tinyint;default:0;not null;comment:-1: 母包渠道	0:内网开发专用   1:先驱测试"`                             //
	SdkChannel int32          `json:"sdkChannel" gorm:"column:sdk_channel;type:tinyint;default:0;not null;comment:-1: sdk渠道	内网/PC 用1，  移动端主动获取sdk提供参数，目前都是1000213"` //
	PubMode    int32          `json:"pubMode" gorm:"column:pub_mode;type:tinyint;default:0;not null;comment:-1: 发布模式	 0:Debug  1:Beta  2:Release"`                  //
	Device     string         `json:"device" gorm:"column:device;type:varchar(255);not null;default:'';comment: 头像"`                                                //
	Os         string         `json:"os" gorm:"column:os;type:varchar(255);not null;default:'';comment: 设备型号,机型信息"`                                                 //
	Imei       string         `json:"imei" gorm:"column:imei;type:varchar(255);not null;default:'';comment: IMEI码"`                                                 //
	ClientVer  string         `json:"clientVer" gorm:"column:client_ver;type:varchar(255);not null;default:'';comment: 客户端版本"`                                      //
	PtId       string         `json:"ptId" gorm:"column:pt_id;type:varchar(255);not null;default:'';comment: 客户端专属渠道id"`                                            //
	CreatedAt  time.Time      `json:"createdAt" gorm:"column:created_at;type:datetime"`
	UpdatedAt  time.Time      `json:"updatedAt" gorm:"column:updated_at;type:datetime"`
	DeletedAt  gorm.DeletedAt `json:"-" gorm:"index;type:datetime"`
}
